<?php
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
echo $ip=GetHostByName($REMOTE_ADDR);
?>

